package day1_12.FirstPhase.ObjectOriented;
// substring 方法的使用,包左不包右
// charAt 获取指定索引的字符
public class SubString {
    public static void main(String[] args) {
        String phoneNumber = "12345678901";
        String start = phoneNumber.substring(0,3);
        String end = phoneNumber.substring(7);
        char five = phoneNumber.charAt(4);
        System.out.println(five); 
        String result = start + "****" + end;
        System.out.println(result);
    }
}
